package books.storage.dto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class AuthorDto implements Serializable {

	private static final long serialVersionUID = -7139106523357083733L;

	private Integer id;
	private String name;
	private Date birthday;
	private Date deathday;
	private List<BookDto> books;

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the birthday
	 */
	public Date getBirthday() {
		return birthday;
	}

	/**
	 * @param birthday
	 *            the birthday to set
	 */
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	/**
	 * @return the deathday
	 */
	public Date getDeathday() {
		return deathday;
	}

	/**
	 * @param deathday
	 *            the deathday to set
	 */
	public void setDeathday(Date deathday) {
		this.deathday = deathday;
	}

	/**
	 * @return the books
	 */
	public List<BookDto> getBooks() {
		return books;
	}

	/**
	 * @param books
	 *            the books to set
	 */
	public void setBooks(List<BookDto> books) {
		this.books = books;
	}

}
